package org.computate.model.item;

import com.google.appengine.api.datastore.Blob;
import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Subclass;

@Cached
@Subclass
public class Upload extends Model {
	
	public String getModelDisplayName() { return "Upload"; }
	public String getModelPluralName() { return "Uploads"; }
	private Blob image;
	private String itemName;
	private Long itemId;
	private String field;
	private String contentType;
	private String redirect;
	private Long nextId;
	
	public Blob getImage() {
		return image;
	}
	
	public void setImage(Blob image) {
		this.image = image;
	}
	
	public String getItemName() {
		return itemName;
	}
	
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	
	public Long getItemId() {
		return itemId;
	}
	
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}
	
	public String getField() {
		return field;
	}
	
	public void setField(String field) {
		this.field = field;
	}
	
	public String getContentType() {
		return contentType;
	}
	
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	
	public String getRedirect() {
		return redirect;
	}
	
	public void setRedirect(String redirect) {
		this.redirect = redirect;
	}
	
	public Long getNextId() {
		return nextId;
	}
	
	public void setNextId(Long nextId) {
		this.nextId = nextId;
	}
}
